import './App.scss';
import { Switch, Route, Redirect } from 'react-router-dom'
import Home from './pages/home/Home'
import Search from './pages/search/Search'
import Rank from './pages/rank/Rank'
import Classify from './pages/classify/Classify'

function App() {
  return (
    <Switch>
      <Route path="/home" component={Home} />
      <Route path="/search" component={Search} />
      <Route path="/rank" component={Rank} />
      <Route path="/classify" component={Classify} />
      <Redirect from="/" to="/home" />
    </Switch>
  );
}

export default App;
